package com.shengyin.ec.model.dao.account;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.shengyin.ec.model.dao.BaseDao;
import com.shengyin.ec.model.dao.BaseDaoImpl;
import com.shengyin.ec.model.entity.City;

@Repository("cityDao")
public class CityDaoImpl extends BaseDaoImpl<City> implements CityDao {
	
	@Override
	public List<City> getCityListByProvinceId(int id){
		List<City> listCity = super.find("from City c where c.provinceId='"+id+"'");
	
		return listCity;
	}
}